home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3model.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_MODEL_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_MODEL = 6;
-
-
-
-
- // Description: Insert dependant to the models dependant list. Typically dependant acts as 'view' of model-view
- // concept. When one of the attributes of the model is changed, R3RM_UPDATE is sent to
- // the all dependants of the model. The p3 parameter associated with the R3RM_UPDATE method identifies
- // the attribute changed. The p2 parameter associated with the R3RM_UPDATE method identifies the model identifier
- // that has been given as parameter p2 with the R3MM_ADDDEPENDENT method.
- // Returns: Boolean, TRUE if succesfully inserted
- // p1: Integer, flags
- // p2: Integer, model identifier
- // p3: Object, address of the dependant
-
- R3MM_ADDDEPENDENT = 6000;
-
- function mR3MM_ADDDEPENDENT(p1, p2, p3) {
- return DoA3(this.r3obj, 6000, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Remove dependant (view) from models dependant list.
- // Returns: Boolean, TRUE if dependant was succesfully removed
- // p3: Object, dependant to be removed
-
- R3MM_REMOVEDEPENDENT = 6001;
-
- function mR3MM_REMOVEDEPENDENT(p3) {
- return DoA(this.r3obj, 6001, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Tell model that one of its state has changed. This causes the model object
- // to send R3RM_UPDATE to all dependants.
- // p3: Tag[], tag list specifying attributes which has changed.
-
- R3MM_CHANGED = 6002;
-
- function mR3MM_CHANGED(p3) {
- Do(this.r3obj, 6002, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
-
-
-
- var R3MF_SYNC = 1;
- var R3MF_NOUPDATE = 2;
- var R3MF_NOREF = 4;
-
-
- function r3Model () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_MODEL, arguments);
- }
- // Methods
- this.ADDDEPENDENT=mR3MM_ADDDEPENDENT;
- this.REMOVEDEPENDENT=mR3MM_REMOVEDEPENDENT;
- this.CHANGED=mR3MM_CHANGED;
-
- // Attributes
- }
-
- r3Model.prototype=new r3Root;
- // r3model.h_H